package org.bizming.util;

public class CheckNull {

	/**
	 * checke if the object is null
	 * 
	 * @param o
	 */
	public static void assertNull(Object o) {
		String msg = "the object is null,you must init it before use...";
		assertNull(o, msg);
	}

	/**
	 * checke if the object is null
	 * 
	 * @param o
	 *            the object
	 * @param msg
	 *            throw msg
	 */
	public static void assertNull(Object o, String msg) {
		if (o == null)
			throw new RuntimeException(msg);
	}
}
